﻿using Magicodes.ExporterAndImporter.Core;

namespace Admin.NET.Application;

/// <summary>
/// 班级输出参数
/// </summary>
public class BanjiImportDto
{       
    /// <summary>
    /// 编号
    /// </summary>
    [ImporterHeader(Name = "编号")]
    [MaxLength(30, ErrorMessage = "编号字数超出最大限制,请修改!")] 
    public string BianHao { get; set; }

    /// <summary>
    /// 班级名称
    /// </summary>
    [ImporterHeader(Name = "班级名称")]
    [MaxLength(30, ErrorMessage = "班级名称字数超出最大限制,请修改!")] 
    public string? Name { get; set; }

    /// <summary>
    /// 学段
    /// </summary>
    [ImporterHeader(Name = "学段")]
    public int Xueduan { get; set; }

    /// <summary>
    /// 级
    /// </summary>
    [ImporterHeader(Name = "级")]
    [Required(ErrorMessage = "级不能为空")] 
    public int Ji { get; set; }

    /// <summary>
    /// 班号
    /// </summary>
    [ImporterHeader(Name = "班号")]
    [Required(ErrorMessage = "班号不能为空")] 
    public int Bh { get; set; }

    /// <summary>
    /// 班主任
    /// </summary>
    [ImporterHeader(Name = "班主任")]
    public string BzrName { get; set; }

    /// <summary>
    /// 是否毕业
    /// </summary>
    [ImporterHeader(Name = "是否毕业")] 
    public bool IsGraduated { get; set; }

    /// <summary>
    /// 导入检查消息
    /// </summary>
    public string? Msg { get; set; }
}
